package com.shopping.service;

import java.util.List;

import com.shopping.entity.Book;
import com.shopping.entity.Favorite;
import com.shopping.entity.PageBean;
import com.shopping.entity.User;

public interface ClientService {

	public User login(String username, String password);

	public boolean register(String username, String password, String name, String sex, String tel, String address);

    public List<Book> xmlbc();

    public List<Book> jsbc();

    public List<Book> dbDesign();

    public List<Book> jsjwl();

    public List<Book> kxjs();

    public List<Book> javabc();

	public void personInformation(String username, String name, String sex, String tel, String address);

	public void personPassword(String password, String username);

	public Book findBookById(String book_id);

	public void addfavorite(String user_id, String book_id);

	public List<Favorite> findFavoriteByUserId(User user);

	public boolean findFavorite(String user_id, String book_id);

	public void delFavorite(String book_id);

	public PageBean<Book> findBooktype(String type, int start, int count);

	public PageBean<Book> search(String search,int currentPage,int currentCount);

}
